<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateHdTecnicosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateHdTecnicosLabel_codTecnico}" for="codTecnico" />
                    <h:inputText id="codTecnico" value="#{hdTecnicosController.selected.codTecnico}" title="#{bundle.CreateHdTecnicosTitle_codTecnico}" required="true" requiredMessage="#{bundle.CreateHdTecnicosRequiredMessage_codTecnico}"/>
                    <h:outputLabel value="#{bundle.CreateHdTecnicosLabel_codAreaTecnica}" for="codAreaTecnica" />
                    <h:selectOneMenu id="codAreaTecnica" value="#{hdTecnicosController.selected.codAreaTecnica}" title="#{bundle.CreateHdTecnicosTitle_codAreaTecnica}" >
                        <f:selectItems value="#{hdAreasTecnicasController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateHdTecnicosLabel_codUsuario}" for="codUsuario" />
                    <h:selectOneMenu id="codUsuario" value="#{hdTecnicosController.selected.codUsuario}" title="#{bundle.CreateHdTecnicosTitle_codUsuario}" required="true" requiredMessage="#{bundle.CreateHdTecnicosRequiredMessage_codUsuario}">
                        <f:selectItems value="#{hdUsuariosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateHdTecnicosLabel_hdCodTecnico}" for="hdCodTecnico" />
                    <h:selectOneMenu id="hdCodTecnico" value="#{hdTecnicosController.selected.hdCodTecnico}" title="#{bundle.CreateHdTecnicosTitle_hdCodTecnico}" >
                        <f:selectItems value="#{hdTecnicosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{hdTecnicosController.create}" value="#{bundle.CreateHdTecnicosSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{hdTecnicosController.prepareList}" value="#{bundle.CreateHdTecnicosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateHdTecnicosIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
